package han;

public class J12Ex4Song {

	public static void main(String[] args) {
		
		Song LetItGo= new Song();
		LetItGo.title ="Let It Go";
		LetItGo.artist="효린";
		LetItGo.album="Frezen OST";
		LetItGo.composer[1]="Various Aritist";
		LetItGo.composer[2]="Various Aritist";
		/*LetItGo.composer= new String[2];
		LetItGo.composer[1]="작곡가";*/
		LetItGo.year="2013";
		LetItGo.track=5;
		LetItGo.show();
	}

}
	class Song{
		String title;
		String artist;
		String album;
		String composer[] = new String[3];
		String year;
		int track;
		public void show(){
			System.out.println("노래 제목="+title);
			System.out.println("가수 이름="+artist);
			System.out.println("엘범 제목="+album);
			if(composer!=null){
			for(int i=1; i<composer.length;++i){
				System.out.println("작곡가 제목="+composer[i]);
			}
			}
			System.out.println("발매 년도="+year);
			System.out.println("트랙넘버="+track);
		}
	}